package com.naiterui.ehp.bp.bo.emr;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 病历记录BO
 *
 * @author lichaopi
 * @since 1.0.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MedicalRecordBO implements Serializable {

    public static final int CASETYPE_OLDRECORD = 0;
    public static final int CASETYPE_OLDCASE = 1;
    public static final int CASETYPE_RECOM = 2;
    public static final int CASETYPE_PATIENTRECORD = 3;
    public static final int CASETYPE_DOCTORRECORD = 4;
    public static final int CASETYPE_OLDDESREOCRD = 5;
    public static final int CASETYPE_OLDDESRECOM = 6;
    public static final int RELATION_ONESELF = 6;// 家庭成员关系本人
    private static final long serialVersionUID = 5435851550235730993L;
    private String id;

    /**
     * 医生id
     */
    private Long doctorId;
    /**
     * 医生姓名
     */
    private String doctorName;
    /**
     * 科室
     */
    private String department;
    /**
     * 医院名称
     */
    private String hospitalName;
    /**
     * 患者id
     */
    private Long patientId;
    /**
     * 患者姓名
     */
    private String name;
    /**
     * 0女1男2未知
     */
    private Integer gender;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 年龄单位:岁，个月，周
     */
    private String ageUnit;
    /**
     * 显示年龄
     */
    private String ageStr;
    /**
     * 0:原诊疗记录,1:患者原病例,2:系统处方,3:患者发送病例,4:病历填写病历,5:带基本病情诊疗记录,6:带基本病情系统处方
     */
    private Integer caseType;
    /**
     * 0：父亲；1：母亲；2：兄弟姐妹；3：子女；4：丈夫；5：妻子；6：本人；7：其他家庭成员
     */
    private Integer relation;
    /**
     * 创建时间
     */
    private Date createAt;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 修改时间
     */
    private Date changedAt;
    /**
     * 创建时间
     */
    private String changeBy;
    private Integer hospitalId;
    private Integer departmentId;
    /**
     * 患者老病历(2.18之前)
     */
    private MedicalRecordOldCaseBO recordOldCase;
    /**
     * 诊疗记录(2.18之前)
     */
    private MedicalRecordOldRecordBO recordOldRecord;
    /**
     * 系统处方
     */
    private MedicalRecordRecomBO recordRecom;

}
